import request from "@/utils/request";

// 查询列表
export function configList() {
  return request({
    url: "/project/config/list",
    method: "get",
  });
}
// 获取详情
export function configInfo(type) {
  return request({
    url: `/project/config/${type}`,
    method: "get",
  });
}
// 修改
export function configPut(data) {
  return request({
    url: `/project/config`,
    method: "put",
    data
  });
}
// 积分导出---列表
export function exportPointsList(query) {
  return request({
    url: "/score/export/list",
    method: "get",
    params: query,
  });
}

// 积分导出---导出
export function scoreExport(query) {
  return request({
    url: "/score/export/scoreExport",
    responseType: "blob",
    params: query,
  });
}
// 试卷下拉列表
export function paperForList(query) {
  return request({
    url: "/project/paper/selectorForList",
    method: "get",
    params: query,
  });
}
